// async await  出来

function sleep(time){
    return  new Promise((resolve)=>{
        
        setTimeout(resolve,time)
        console.log('--------')
    })
}

(async function(){ 
    console.log('+++++++')
    setTimeout(function(){
        console.log('======')
    }, 2000)
    await sleep(3000);
    await sleep(3000);
    await sleep(3000);
    await sleep(3000);
    console.log('Do some thing'+new Date())
})()
// sleep(2000)
    